<?
include_once($_SERVER['DOCUMENT_ROOT']."/lucy/config.php");
include_once(INC.'sess.php');

class dictionary{

	function Dictionary(){
		
	}

	function add_translate($name, $value){
		if(!$dbcon){include(INC.'dbcon.php');}
		$sql = "INSERT INTO `dictionary` (`name`, `mod`) VALUES ('$name', '$value')";
		$rez = mysql_query($sql, $dbcon);
		return ($rez) ? 1 : 0;
	}
	
}